﻿/********************************************************************
created:	2009/11/23
created:	11:23:2009   11:59
filename: 	HLuaScript.h
author:		XinPing Huang
email:		77967292@qq.com
Qualifier:  luaű
*********************************************************************/
#ifndef _HLUASCRIPT_H_
#define _HLUASCRIPT_H_
#pragma once

class CHLuaScript
{
public:
	CHLuaScript();
	BOOL InitLuaScript(CString strFile);
	char* GetLuaString(CString strModule, size_t nLen)const;
	int   GetLuaNumber(CString strModule)const;
	int   GetLuaFunction(CString strFunction, int *nParam, BYTE byParamSize, BYTE byReturn);
public:
	~CHLuaScript(void);
protected:
	lua_State *m_LuaState;
};

#endif